import axios from "axios";

export function request(config) {

    // 创建axios的实例
    const instance = axios.create({
        // baseURL: '/proxy',
        timeout: 5000,
        headers: {
            // referer: 'http://autumnfish.cn',
            // host: 'autumnfish.cn'
            // 'Content-Type': "application/json;charset=utf-8",
            "Access-Control-Allow-Origin": "*",
            "Access-Control-Allow-Methods": "POST, GET, PUT, OPTIONS, DELETE"
          }
        
    })

    // 发送真正的网络请求
    return instance(config)

}